#include <BustaNetMsgQ.h>
Public Member Functions | |
BustaNetMsgQ () | |
CONSTRUCTOR. | |
~BustaNetMsgQ () | |
DESTRUCTOR. | |
BustaNetInternalMsg * | pop () |
Pop from the front of the queue. | |
void | enqueue (BustaNetMsgQNode *newNode) |
Adds a new message to the queue. | |
void | flushQ () |
Empties the Queue. | |
int | getNodeCount () |
Returns the count of messages in the queue. |
This is a linked list implementation of a message queue. The queue is provided by the client to the engine such that multiple server messages or special sandwiches can be sent before the engine addresses the messages.
|
CONSTRUCTOR. Creates an empty message queue. |
|
DESTRUCTOR. Empties queue and frees memory. |
|
Adds a new message to the queue. Adds a preconstructed network message to the end of the message queue.
|
|
Empties the Queue. The message queue is emptied of all messages. All messages are deleted from memory. |
|
Returns the count of messages in the queue. Returns the count of messages currently in the message queue |
|
Pop from the front of the queue. Returns a pointer to the first message in the queue. The message must be deleted after use!
|